﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateEditZone.aspx.cs" Inherits="Web.Cms.Content.Zones.CreateEditZone" Theme="Default" %>

<%@ Register TagPrefix="cc1" Namespace="AWS.FilePicker" Assembly="FilePickerControl" %>      

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <link href="/App_Themes/Default/Style.css" rel="stylesheet" type="text/css" />            
    <script type="text/javascript" language="javascript" src="/Scripts/AjaxScript.js"></script>    
    
</head>
<body>
    <form id="form1" runat="server">    
        <table border="0" cellpadding="3" cellspacing="6" width="100%">                                            
            <tr><td align="center" colspan="5" valign="top"><asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="true" ForeColor="red" Font-Size="11px"></asp:Label></td></tr>
            <tr><td style="height:5px;" colspan="5"></td></tr>           
            <tr>
                <td style="width:153px;" align="left"><b>Chức năng:</b></td>
                <td align="left"><asp:DropDownList ID="DropModuleMenu" runat="server" Width="236px" onChange="ddlOnChange_ID(this.value)"></asp:DropDownList></td>
                <td style="width:10px;"></td>
                <td align="left"><b>Trang hiển thị:</b></td>
                <td align="left">
                    <asp:DropDownList ID="dropTrangHienThi" runat="server" Width="210px">                    
                    </asp:DropDownList>

                </td>
            </tr>                
            <tr>
                <td align="left"><b>Chuyên mục cha:</b></td>
                <td align="left"><asp:DropDownList ID="dropParent" runat="server" Width="236px"></asp:DropDownList></td>
                <td style="width:10px;"></td>
                <td align="left"><b>Thứ tự:</b></td>
                <td align="left"> <asp:DropDownList ID="dropPriority" runat="server" Width="58px"></asp:DropDownList></td>
            </tr>    
            <tr>
                <td align="left"><b> Tên chuyên mục:</b></td>
                <td align="left">
                    <asp:TextBox runat="server" ID="txtZonesName" Width="234px" height="15px"></asp:TextBox>
                    <asp:RequiredFieldValidator Font-Bold="true" ForeColor="red" Font-Size="11px" ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtZonesName"></asp:RequiredFieldValidator>
                </td>
                <td style="width:10px;"></td>
                <td align="left"><b>Ảnh:</b></td>
                <td align="left"><cc1:FilePicker ID="txtImage" runat="server" fpPopupURL="/FilePicker/FilePicker.aspx"
                    Width="100px" fpAllowedUploadFileExts="doc,jpg,gif,png,jpeg,rar,zip,ppt,pptx,xls,xlsx" CssClass="input" fpUploadDir ="/Uploads/menu"></cc1:FilePicker>
                </td>
            </tr>    
            <tr>
                <td align="left"><b>Trạng thái:</b></td>
                <td align="left">
                    <asp:DropDownList ID="DropClick" runat="server" Width="236px">
                        <asp:ListItem Value="none">Bình thường</asp:ListItem>
                        <asp:ListItem Value="#">Không click</asp:ListItem>
                    </asp:DropDownList>
                </td>            
                <td style="width:10px;"></td>
                <td colspan="2">
                    <table>
                        <tr id="idLinkUrl" name="idLinkUrl">
                            <td><asp:Label Font-Bold="true" runat="server" ID="lbLinkUrl" Text="Đặt link url:"></asp:Label></td>
                            <td><asp:TextBox runat="server" ID="txtLinkUrl" Width="200px" Text="http://"></asp:TextBox></td>
                        </tr>  
                    </table>
                </td>
            </tr>
            <tr><td colspan="5" style="height:5px;"></td></tr>
            <tr>
                <td align="left"><b> Một số lựa chọn</b></td>
                <td align="left" colspan="4">
                    <asp:CheckBox ID="chMenuTop" runat="server" Text="Menu Top" />
                    <asp:CheckBox ID="chMenuLeft" runat="server" Text="Menu trái" />
                    <asp:CheckBox ID="chMenuRight" runat="server" Text="Menu phải" />
                    <asp:CheckBox ID="chBottom" runat="server" Text="Menu cuối trang"/>
                    <asp:CheckBox ID="chMenuWap" runat="server" Text="Menu trang wap"/>
                    <br /><br />
                    <span id="idRss" name="idRss" style="display:none;">
                        <asp:CheckBox ID="chMenuRss" runat="server" Text="Menu Rss" Visible="false" Font-Italic="false" />
                    </span>
                </td>            
            </tr>                      
            <tr>
                <td style="height: 30px"></td>
                <td align="left" style="height: 30px" colspan="4">                                                          
                    <asp:LinkButton ID="btnAdd" runat="server" SkinID="admin-ButtonInsert" onclick="btnAdd_Click" />  
                    <asp:LinkButton ID="btnUpdate" runat="server" SkinID="admin-ButtonUpdate" onclick="btnUpdate_Click"/>                    
                </td>    
            </tr>          
        </table>       
    
    </form>
</body>
</html>
  <script type="text/javascript" language="javascript">
      //an hien check box
      var moduType = document.getElementById("<%=DropModuleMenu.ClientID %>");
      if (moduType.value == '7')
          ShowHide('inline', 'idLinkUrl');
      else
          ShowHide('none', 'idLinkUrl');
</script>